package game.entity.action;

import edu.monash.fit2099.engine.Action;
import edu.monash.fit2099.engine.Actor;
import edu.monash.fit2099.engine.GameMap;
import edu.monash.fit2099.engine.Location;
import game.entity.actor.Stegosaur;

public class GrowAction extends Action {

    private Actor grownActor;

    public GrowAction(Actor grownActor) {
        this.grownActor = grownActor;
    }

    @Override
    public String execute(Actor actor, GameMap map) {
        Location location = map.locationOf(actor);
        map.removeActor(actor);
        location.addActor(grownActor);
        return actor + "was grown!";
    }

    @Override
    public String menuDescription(Actor actor) {
        return null;
    }
}
